package com.example.spring;

import com.example.spring.bean.People;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:testPeople
 * Package:com.example.spring
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-16:53
 * @Version:v1.0
 */
public class testPeople {
    @Test
    public void name() {
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext("spring-c.xml");
        People peopleBean = applicationContext.getBean("peopleBean", People.class);

        System.out.println(peopleBean);
    }
}
